<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div class="box">
        <i class="close">x</i>
        <img src="images/banner4.jpg" alt="">
    </div>
    <script>
        var close = document.querySelector('.close');
        var box = document.querySelector('.box');
        close.onclick = function() {
            box.style.display = 'none';
        }
    </script>
</body>

</html>